/**
 * A class defining the Detective, the one to locate mr. X
 */

public class Detective extends Agent
{
    /**
     * The constructor of the detective, defining the number of tickets he will
     * have
     */
    public Detective(Node positionIn, Map theMap){
        super(positionIn, theMap);
        tickets[TAXI] = 10;
        tickets[BUS] = 8;
        tickets[UNDERGROUND] = 4;
    }

	public void setDefaultVisibility()
	{
		visible = true;
	}

	public void moveToPosition(Movement move)
	{

		position = move.getNode();
        int type = move.getType();
		tickets[type]--;
        map.agents[5].tickets[type]++;
	}
}
